#include <stdio.h>

int main(int argc, char const *argv[])
{
    int a[5]={9,6,8,1,3};
    int b = sizeof(a)/4;
    for (int i = 0; i < b; i++)
    {
        for (int j = 0; j < b-1; j++)
        {
            if (a[j]>a[j+1])
            {
                int num = 0;
                num = a[j];
                a[j] = a[j+1];
                a[j+1] = num;
            }
        }
    }

    for (int i = 0; i < b; i++)
    {
        printf("%d",a[i]);
        if(i<b-1) printf(";");
    }
    printf("\n");
    return 0; 
}